<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<%@ include file="/commons/kindeditor.jsp" %>
<link rel="stylesheet" type="text/css" href="${staticPath }/static/dist/jquery.jsonview.css">
<script type="text/javascript" src="${staticPath }/static/dist/jquery.jsonview.js"></script>
<div style="padding:10px 10px 10px 10px">
	<table class="grid" style="width: 90%">
		<tr>
			<td>openId:</td>
			<td>
				${weChatEvent.openId}
			</td>
			<td>类型:</td>
			<td>
				${weChatEvent.type}
			</td>
		</tr>
		<tr>
			<td>发生时间:</td>
			<td>
				<fmt:formatDate pattern='yyyy-MM-dd HH:mm:ss' value='${weChatEvent.time}'/>
			</td>
			<td>创建时间:</td>
			<td>
				<fmt:formatDate pattern='yyyy-MM-dd HH:mm:ss' value='${weChatEvent.createdTime}'/>
			</td>
		</tr>
		<tr>
			<td>内容:</td>
			<td colspan="3">
				<div id="json-collapsed"></div>
				<script type="text/javascript">
                    var json =${weChatEvent.data};
                    $(function() {
                        $("#json-collapsed").JSONView(json, { collapsed: true, nl2br: true, recursive_collapser: true });
                    });
				</script>

			</td>
		</tr>
	</table>
</div>
